#include "Book.h"

bool Book::operator == (const Book& rhs)
{
	return (strcmp(isbn, rhs.isbn) && strcmp(name, rhs.name)
		&& price == rhs.price);
}

bool Book::operator != (const Book& rhs)
{
	return  !operator == (rhs);
}

char* Book::toString() {
	char info[200];
	sprintf_s(info, "ISBN:%s, book name:%s,  price:%.2f\0", isbn, name, price);
	return info;
}